package megajournal.domain;

import java.util.List;

/**
 *
 * @author cska
 */
public class Group {

    private Long id;
    private String speciality;
    private String letter;
    private int course;
    private int number;
    private List<Student> students;
    private List<Group_Teacher_Subject> gtses;

    public Group() {
    }

    public Group(String speciality, String letter, int course, int number) {
        this.speciality = speciality;
        this.letter = letter;
        this.course = course;
        this.number = number;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setSpeciality(String speciality) {
        this.speciality = speciality;
    }

    public void setLetter(String letter) {
        this.letter = letter;
    }

    public void setCourse(int course) {
        this.course = course;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public void setStudents(List<Student> students) {
        this.students = students;
    }

    public void setGtses(List<Group_Teacher_Subject> gtses) {
        this.gtses = gtses;
    }
    
    public Long getId() {
        return id;
    }

    public String getSpeciality() {
        return speciality;
    }

    public String getLetter() {
        return letter;
    }

    public int getCourse() {
        return course;
    }

    public int getNumber() {
        return number;
    }

    public List<Student> getStudents() {
        return students;
    }

    public List<Group_Teacher_Subject> getGtses() {
        return gtses;
    }

    @Override
    public String toString() {
        return letter+""+course+""+number+" ("+speciality+")";
    }

}
